{extend name="base" /}
{block name="content"}
<div class="g-main">
	<div class="m-main-title">
		<div class="m-container-fluid">
			<a href="{:url('index/welcome')}"><i class="icon icon-home"></i>首页</a>
			<span class="icon-angle-right"></span>
			<span>系统</span>
			<span class="icon-angle-right"></span>
			<span>分销管理</span>
			<span class="icon-angle-right"></span>
			<span>分销商</span>
			<a class="u-flush"><i class="icon-repeat"></i></a>
		</div>
	</div>
	<div class="m-main-content">
		<div class="m-container">
			<table class="m-table">
				<tr>
					<th>
						<div class="m-options cf">
							<!-- <div class="m-opts fl"><a href="{:url('add')}" class="u-btn"><i class="icon-plus"></i>添加会员</a></div> -->
							<div class="m-search fr">
								<form action="" class="layui-form">

									<input type="submit" class="u-btn u-search" value="查看" />
								</form>
							</div>
						</div>
					</th>
				</tr>
			</table>
			<form class="layui-form">
				<table class="m-table mt-10">
					<tbody class="datas">
					<tr>
						<th width="5%">ID</th>
						<th width="10%">头像</th>
						<th width="20%">昵称</th>
						<th width="15%">上级名称</th>
						<th width="15%">注册时间</th>
						<th width="15%">操作</th>
					</tr>
					{foreach name="data" item="v"}
					<tr>
						<td>{$v.id}</td>
						<td><img src="{$v.headimgurl}" alt="" style="display: block; width: 50px; height: 50px;" /></td>
						<td>{$v.nickname}</td>
						<td>{$v.parent_txt}</td>
						<td>{$v.create_time}</td>
						<td><a href="{:url('customerInfo', ['userid' => $v.id])}" title="查看客户信息">客户信息</a>
						<a href="{:url('consumptionLog', ['userid' => $v.id])}" title="查看消费记录">消费记录</a>
						<a href="{:url('saleData', ['userid' => $v.id])}" title="查看销售数据">销售数据</a></td>
					</tr>
					{/foreach}
					</tbody>
				</table>
			</form>
			{include file="public:page" /}
		</div>
	</div>
</div>
{/block}
{block name="extrajs"}
{include file="laypage" /}
{/block}